package com.example.entity;

public class OrderDetail {
    private Integer orderdetailid;
    private Integer orderid;
    private Integer recipeid;
    private Integer num;
    private String recipename;
    private Double price; // 单价

    private Double subtotal;

    public Integer getOrderdetailid() {
        return orderdetailid;
    }

    public void setOrderdetailid(Integer orderdetailid) {
        this.orderdetailid = orderdetailid;
    }

    public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    public Integer getRecipeid() {
        return recipeid;
    }

    public void setRecipeid(Integer recipeid) {
        this.recipeid = recipeid;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getSubtotal() {
        return subtotal;
    }

    public void setSubtotal(Double subtotal) {
        this.subtotal = subtotal;
    }
    public String getRecipename() {
        return recipename;
    }

    public void setRecipename(String recipename) {
        this.recipename = recipename;
    }
    @Override
    public String toString() {
        return "OrderDetail{" +
                "orderdetailid=" + orderdetailid +
                ", orderid=" + orderid +
                ", recipeid=" + recipeid +
                ", num=" + num +
                ", price=" + price +
                ", subtotal=" + subtotal +
                '}';
    }
}